﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ctrip.Demo
{
    public class TestDemo : BaseDemo
    {
        public override void Run()
        {
            //Console.WriteLine((int)DateTime.Now.DayOfWeek);
            //Console.WriteLine(DateTime.Now.AddDays(-3).ToString("yyyy-MM-01 00:00:00"));

            Parallel.For(0, 10, new ParallelOptions { MaxDegreeOfParallelism = 5 }, (i) =>
            {
                Console.WriteLine(i);
            });
        }
    }
}
